<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>10-shangexitong-test-03 列偏移</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
</head>
<style>
    .row div {
        height: 50px;
        background-color: green;
        text-align: center;
    }
</style>

<body>
    <div class="container">
        <div class="row">
            <div class="col-md-3">left</div>
            <!-- 偏移的份数就是12-两个盒子的份数  12-3-3=6 -->
            <!-- 原理：在盒子的左侧加上margin值 -->
            <div class="col-md-3 col-md-offset-6">right</div>
        </div>

        <div class="row">
            <!-- 中间盒子偏移的份数就是（12-盒子的份数）/2 （12-8）/2=2 -->
            <div class="col-md-8 col-md-offset-2">center</div>
        </div>
    </div>
</body>

</html>